package com.muyan.msg.sms;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: YLTDMenglc
 * @Date: 2019/6/20
 * @Time: 14:30
 * @Description:
 */
@Component
public class SmsConsumer {

    @RabbitListener(queues = "new_fanout_sms_queue")
    public void process(String msg){
        System.out.println("短信收到的消息:"+msg);
    }

}
